package com.yunxiao.cloud.auth.server.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * <p>
 * 系统用户表 前端控制器
 * </p>
 *
 * @author yunxiao
 * @since 2020-02-18
 */
@RestController
@RequestMapping("/user")
public class SysUserController {

    @RequestMapping("/me")
    public Principal user(Principal principal) {
        System.out.println(principal);
        return principal;
    }
}

